#ifndef __C_CROSSFIRE_LOG_H_
#define __C_CROSSFIRE_LOG_H_

#include "ILog.h"
#include <stdio.h>
#include <stdarg.h>
#include "CSingleton.h"

namespace cfe
{

class CLog : public ICF_Log
{
private:
  bool m_bEnable;
  FILE* m_logFile;
  static CLog*  s_pSingleton;
  CLog() { m_bEnable = false; };
public:
  static CLog* getLogInstance();
  //CLog() { m_bEnable = false; };
  ~CLog()
  {
 	EndLogging();
  };

  void LogError(char*, ...);
  void WriteToLog(char*, ...);
  void LogWarning(char*, ...);

  void BeginLogging( const char* logFile );
  void EndLogging();
};

};

#endif